]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Simulate a focus-app change when leaving the overview
authorFlorian Müllner <fmuellner@src.gnome.org>
Wed, 24 Feb 2010 20:46:00 +0000 (21:46 +0100)
committerFlorian Müllner <fmuellner@src.gnome.org>
Wed, 24 Feb 2010 21:13:36 +0000 (22:13 +0100)
When the currently focused app sends a notification while in the overview,
the corresponding source icon is not removed when the overview is left.
It does make some sense to treat the overview transition the same as a
normal focus change, so we should update the summary view accordingly.

js/ui/notificationDaemon.js

index a0774b7f83d937692f1c2965842e9af74ba32407..2977adcb9e48799ccef69e1e90699a20355023ff 100644 (file)
@@ -103,6 +103,8 @@ NotificationDaemon.prototype = {
 
         Shell.WindowTracker.get_default().connect('notify::focus-app',
             Lang.bind(this, this._onFocusAppChanged));
+        Main.overview.connect('hidden',
+            Lang.bind(this, this._onFocusAppChanged));
     },
 
     _acquiredName: function() {
@@ -263,7 +265,8 @@ NotificationDaemon.prototype = {
         ];
     },
 
-    _onFocusAppChanged: function(tracker) {
+    _onFocusAppChanged: function() {
+        let tracker = Shell.WindowTracker.get_default();
         Main.messageTray.removeSourceByApp(tracker.focus_app);
     },